
import './style.scss'
function component() {
    const element = document.createElement('div');
    element.innerHTML =['Hello', 'webpack'].join('\n~\n');
    element.className = 'hello';
    const btn = document.createElement('button');
    btn.innerHTML = 'Click me';
    btn.onclick = function () {
        console.log(`I'm printed!!`);
    }
    element.appendChild(btn);
    return element
}

document.body.appendChild(component())